<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>模块管理</title>
    <link rel="shortcut icon" th:href="@{/img/favicon.ico}"/>
    <link rel="bookmark" th:href="@{/img/favicon.ico}" type="image/x-icon"/>
    <link th:href="@{/css/style.css}" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" th:src="@{/laydate/laydate.js}"></script>
</head>

<body>
<div class="place"><span>位置：</span>
    <ul class="placeul">
        <li><a th:href="@{/sys/users/userall}">系统管理</a></li>
        <li><a th:href="@{/sys/modules/moduleList}">模块管理</a></li>
        <li><a href="#">添加</a></li>
    </ul>
</div>
<div class="formbody">
    <div class="formtitle"><span>模块信息</span></div>
    <form th:action="@{/sys/modules/addModule}" method="post">
    <ul class="forminfo">
        <li>
            <label>模块名称</label>
            <input name="moduleRname" type="text" class="dfinput"/>
            <i>必填，不能超过30个字符</i>
        </li>
        <li>
            <label>父模块</label>
            <select name="modulePid" class="dfselect">
                <option value="0">请选择</option>
                <option th:each="p:${session.pallmodules}"
                        th:selected="${p.moduleId==pid?'true':'false'}"
                        th:text="${p.moduleRname}" th:value="${p.moduleId}"></option>
            </select>
        </li>
        <li>
            <label>URL</label>
            <input name="moduleMurl" type="text" class="dfinput"/>
            <i>必填，不能超过30个字符</i>
        </li>
        <input type="hidden" name="moduleState" value="1"/>
        <li>
            <label>&nbsp;</label>
            <input name="" type="submit" class="btn" value="确认保存"/>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <input name="" type="button" class="btn" value="返回" onclick="window.history.go(-1);"/>
        </li>
    </ul>
    </form>
</div>
</body>
</html>
